package trlygjj.tanruiliyigenjinjin.mapper;

import org.apache.ibatis.annotations.Param;
import trlygjj.tanruiliyigenjinjin.domain.Attence;
import trlygjj.tanruiliyigenjinjin.query.QueryObject;

import java.util.List;

public interface AttenceMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Attence record);

    Attence selectByPrimaryKey(Long id);

    List<Attence> selectAll();

    int updateByPrimaryKey(Attence record);

    int queryForCount(QueryObject qo);

    List<Attence> queryForList(QueryObject qo);

    //Attence selectByEmployeeIdAndToday(@Param("employeeId") Long id,@Param("today") Date  today);


    /**
     * 查询一条Attence信息
     * @param id 员工的id
     * @param format 系统时间
     * @return
     */
    Attence selectEmployeeNameAndToday(@Param("employeeId")Long id, @Param("today")String format);
}